/* 需要注意的点：路径问题 */
@font-face {
  font-family: 'icomoon';
  src: url('../fonts/icomoon.eot?zh9tnc');
  src: url('../fonts/icomoon.eot?zh9tnc#iefix') format('embedded-opentype'),
    url('../fonts/icomoon.ttf?zh9tnc') format('truetype'),
    url('../fonts/icomoon.woff?zh9tnc') format('woff'),
    url('../fonts/icomoon.svg?zh9tnc#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

.banner {
  background-color: #f5f5f5;
  height: 500px;
  position: relative;
}

.banner .wrapper {
  height: 100%;
  background-image: url(../uploads/banner_1.png);
}

.banner .wrapper .aside {
  width: 251px;
  height: 500px;
  /* background-color: #000;
  opacity: 0.8; */
  background-color: rgba(0, 0, 0, .8);
  /* 总结就是：opacity对透明度的设置是包括文字颜色的 */
  float: left;
}

.banner .wrapper .aside ul li {
  height: 50px;
  line-height: 50px;
  padding-left: 36px;
}

.banner .wrapper .aside ul li a {
  font-size: 16px;
  color: #fff;
}

.banner .wrapper .aside ul li:hover {
  background-color: #27ba97;
}

.banner .wrapper .aside ul li a::after {
  font-family: 'icomoon';
  content: '\e903';
  float: right;
  padding-right: 20px;
}

.banner .wrapper .prev {
  position: absolute;
  top: 50%;
  left: 31%;
  width: 45px;
  height: 44px;
  /* background-color: #000; */
  background-color: rgba(0, 0, 0, .2);
  /* opacity: 0.2; */
  border-radius: 22px;
  background-image: url(../images/sprites.png);
  background-position: 13px -58px;
}

/* 
为啥这样难以达到要求：
.banner .wrapper .prev::after {
  font-family: 'icomoon';
  content: '\e902';
  font-size: 20px;
  color: #fff;
} */

.banner .wrapper .next {
  position: absolute;
  top: 50%;
  right: 18%;
  width: 45px;
  height: 44px;
  border-radius: 22px;
  background-color: rgba(0, 0, 0, .2);
  background-image: url(../images/sprites.png);
  background-position: -23px -58px;
}

.banner .wrapper .dots {
  position: absolute;
  bottom: 5%;
  left: 53%;
  width: 120px;
  height: 12px;
}

.banner .wrapper .dots ul li {
  float: left;
  width: 10px;
  height: 10px;
  background-color: #fff;
  opacity: .4;
  margin: 0 7px;
  border-radius: 5px;
}

.banner .wrapper .dots ul li:nth-child(3) {
  opacity: 1;
}

.fresh .top {
  margin: 40px 0 30px 0;
}

.fresh .top h2{
  float: left;
  font-size: 29px;
  color: #333;
  font-weight: 400;
  margin-right: 35px;
}

.fresh .top p {
  float: left;
  font-size: 16px;
  color: #999;
  line-height: 43px;
  vertical-align: baseline;
}

.fresh .top a {
  float: right;
  font-size: 16px;
  color: #999;
  line-height: 43px;
  vertical-align: baseline;
}

.fresh .top a::after {
  font-family: 'icomoon';
  content: '\e903';
  font-size: 20px;
  padding-left: 10px;
  vertical-align: top;
}
/* 遇到问题5：字体小图标与文字对不齐 
解决方案：为其设置vertical-align属性
*/

.fresh .bottom ul li {
  position: relative;
  float: left;
  width: 304px;
  height: 405px;
  margin-right: 8px;
  background-color: #f0f9f4;
}

.fresh .bottom ul li img {
  width: 304px;
}

.fresh .bottom ul li:last-child {
  margin-right: 0;
}

.fresh .bottom ul li p {
  font-size: 20px;
  color: #333;
  text-align: center;
  padding-top: 22px;
  padding-bottom: 7px;
}

.fresh .bottom ul li span {
  font-size: 23px;
  color: #9a2e1f;
  display: block;
  text-align: center;
  /* 疑惑：为啥text-align要加上display:block才起作用 */
}

.fresh .bottom ul li i {
  position: absolute;
  top: 5%;
  left: 3%;
  width: 28px;
  height: 51px;
  border: 2px solid #27ba9b;
  font-size: 18px;
  line-height: 21px;
  color: #27ba9b;
  text-align: center;
}

.popular .top {
  margin-top: 30px;
  margin-bottom: 20px;
}

.popular .top h2 {
  float: left;
  margin-right: 35px;
  font-size: 29px;
  color: #333;
  font-weight: 400;
}

.popular .top p {
  font-size: 16px;
  color: #999;
  line-height: 53px;
  vertical-align: baseline;
}

.popular .bottom ul li {
  float: left;
  margin-right: 8px;
  width: 304px;
  height: 405px;
}

.popular .bottom ul li:last-child {
  margin: 0;
}

.popular .bottom ul li img {
  width: 100%;
}

.popular .bottom ul li h4 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #333;
  font-size: 21px;
  font-weight: 400;
  text-align: center;
}

.popular .bottom ul li p {
  color: #999;
  font-size: 16px;
  text-align: center;
}

.hot {
  background-color: #f5f5f5;
}

.hot .top {
  position: relative;
  padding-top: 25px;
  padding-bottom: 25px;
}

h2 {
  float: left;
  margin-right: 35px;
  font-size: 29px;
  color: #333;
  font-weight: 400;
}

.hot .top p {
  font-size: 16px;
  color: #999;
  line-height: 53px;
  vertical-align: baseline;
}

.hot .top .prev {
  position: relative;
  position: absolute;
  bottom: 21%;
  right: 2%;
  width: 20px;
  height: 20px;
  background-color: #e2e2e2;
}

.hot .top .prev::after {
  position: absolute;
  left: -5%;
  top: -24%;
  font-family: 'icomoon';
  content: '\e902';
  font-size: 22px;
  color: #fff;
}

.hot .top .next {
  /* 疑惑：为啥小图标写这里没用呢？
  font-family: 'icomoon';
  content: '\e903'; */
  position: relative;
  position: absolute;
  bottom: 21%;
  right: 0%;
  width: 20px;
  height: 20px;
  background-color: #27ba9b;
}

.hot .top .next::after {
  position: absolute;
  left: 4%;
  top: -22%;
  font-family: 'icomoon';
  content: '\e903';
  font-size: 22px;
  color: #fff;
}

.hot .bottom {
  padding-bottom: 30px;
}

.hot .bottom ul li {
  float: left;
  width: 247px;
  height: 313px;
  margin-right: 1px;
}

.hot .bottom ul li img {
  width: 100%;
}

.main {
  margin-bottom: 30px;
}

.main .top {
  padding: 25px 0;
  /* 注意点：padding不能用auto */
}

.main .top ul {
  float: right;
}

.main .top ul li {
  float: left;
  margin: 0 11px;
  font-size: 16px;
  color: #333;
  line-height: 43px;

}

.main .top ul li a {
  padding: 2px 4px;
}

.main .top ul li:hover a {
  color: #fff;
  background-color: #27ba9b;
}

.main .top ul li:last-child a {
  color: #999;
  margin-left: 40px;
}

.main .top ul li:last-child:hover a {
  color: #27ba97;
  background-color: #fff;
}

.main .top ul li:last-child a::after {
  font-family: 'icomoon';
  content: '\e903';
  vertical-align: middle;
  font-size: 20px;
  margin-left: 10px;
}

.main .bottom {
  margin-top: 45px;
}

.main .bottom .left {
  float: left;
  width: 242px;
  height: 617px;
}

.main .bottom .left img {
  width: 100%;
}

.main .bottom .right ul li {
  float: left;
  width: 242px;
  height: 304px;
}

.main .bottom .right ul li img {
  display: block;
  margin: 0 auto;
  /* width: 100%; */
  height: 60%;
  /* padding: 7px 9px 0px 10px; */
  /* margin: auto; */
  margin-bottom: 15px;
}

.main .bottom .right ul li p {
  padding: 0 32px;
  font-size: 16px;
  color: #333;
  text-align: left;
  line-height: 20px;
}

.main .bottom .right ul li span {
  font-size: 22px;
  color: #9a2e1f;
  padding-left: 25px;
}

.newest {
  padding: 40px 0;
  background-color: #f5f5f5;
}

.newest .top a {
  float: right;
  font-size: 16px;
  color: #999;
}

.newest .top a::after {
  font-family: 'icomoon';
  content: '\e903';
  padding-left: 10px;
  font-size: 20px;
  vertical-align: middle;
}

.newest .top a:hover {
  color: #27ba97;
}

.newest .bottom {
  margin-top: 20px;
}

.newest .bottom ul li {
  position: relative;
  float: left;
  width: 404px;
  height: 356px;
  background-color: #fff;
}

.newest .bottom ul li img {
  width: 100%;
  /* 待加：盒子阴影 */
  /* box-shadow: 10px 10px 20px 1px #333 inset; */
}

.newest .bottom ul li:nth-child(2) {
  margin: 0 9px;
}

.newest .bottom ul li h4 {
  position: absolute;
  bottom: 30%;
  left: 7%;
  font-size: 20px;
  font-weight: 400;
  color: #fff;
}

.newest .bottom ul li p {
  position: absolute;
  bottom: 24%;
  left: 7%;
  font-size: 16px;
  color: #999;
}

.newest .bottom ul li .price {
  position: absolute;
  bottom: 27%;
  right: 7%;
  width: 81px;
  height: 27px;
  font-size: 16px;
  font-weight: bold;
  color: #9a2e1f;
  background-color: #fff;
  text-align: center;
}

.newest .bottom ul li .detail {
  margin-top: 27px;
}

.newest .bottom ul li .love,.newest .bottom ul li .eyes {
  float: left;
  font-size: 14px;
  color: #333;
}

.newest .bottom ul li .comment {
  float: right;
  margin-right: 18px;
  font-size: 14px;
  color: #333;
}

/* 疑惑：为啥这样设置不行 
.newest .bottom ul li .love::before {
  display: inline-block;
  background-color: red;
  width: 14px;
  height: 12px;
  background-image: url(../images/sprites.png);
  background-position: -241px -111px;
} */

.newest .bottom ul li .love span {
  display: inline-block;
  width: 15px;
  height: 12px;
  margin-left: 17px;
  margin-right: 3px;
  background-image: url(../images/sprites.png);
  background-position: -120px -110px;
}

.newest .bottom ul li:nth-child(2) .love span {
  background-position: -240px -110px;
}

.newest .bottom ul li .eyes span {
  display: inline-block;
  width: 15px;
  height: 12px;
  margin-right: 3px;
  margin-left: 40px;
  background-image: url(../images/sprites.png);
  background-position: -160px -111px;
}

.newest .bottom ul li .comment span {
  display: inline-block;
  width: 16px;
  height: 15px;
  margin-right: 3px;
  background-image: url(../images/sprites.png);
  background-position: -200px -110px;
  vertical-align: middle;
}

.service {
  margin: 75px auto;
}

.service ul li {
  float: left;
  width: 260px;
  height: 185px;
  /* border: 1px solid #666; */
  margin-right: 66px;
}

/* 疑惑：为啥下面代码不起作用？ */
.service ul li:last-child {
  margin-right: 0;
}

.service ul li h4 {
  font-size: 16px;
  color: #999;
  text-align: center;
}

.service ul li .customer {
  float: left;
  width: 93px;
  height: 92px;
  border: 1px solid #999;
  text-align: center;
  margin: 40px 10px 0 32px;
}

.service ul li .customer span {
  display: block;
  width: 28px;
  height: 28px;
  /* margin: 0 auto;
  margin-top: 22px; */
  margin: 22px auto 5px;
  background-image: url(../images/sprites.png);
  background-position: -251px -70px;
}

.service ul li .customer:hover span {
  background-position: -206px -70px;
}

.service ul li .problem {
  float: left;
  width: 93px;
  height: 92px;
  border: 1px solid #999;
  text-align: center;
  margin-top: 40px;
}

.service ul li .problem span {
  display: block;
  width: 27px;
  height: 28px;
  /* margin: 0 auto;
  margin-top: 22px; */
  margin: 22px auto 5px;
  background-image: url(../images/sprites.png);
  background-position: -351px -71px;
}

.service ul li .problem:hover span {
  background-position: -301px -71px;
}

.service ul li .public {
  float: left;
  width: 93px;
  height: 92px;
  border: 1px solid #999;
  text-align: center;
  margin: 40px 10px 0 32px;
}

.service ul li .public span {
  display: block;
  width: 35px;
  height: 29px;
  /* margin: 0 auto;
  margin-top: 19px; */
  margin: 19px auto 5px;
  background-image: url(../images/sprites.png);
  background-position: -250px -15px;
}

.service ul li .public:hover span {
  background-position: -205px -15px;
}

.service ul li .microblog {
  float: left;
  width: 93px;
  height: 92px;
  border: 1px solid #999;
  text-align: center;
  margin-top: 40px;
}

.service ul li .microblog span {
  display: block;
  width: 36px;
  height: 29px;
  margin: 19px auto 5px;
  background-image: url(../images/sprites.png);
  background-position: -350px -15px;
}

.service ul li .microblog:hover span {
  background-position: -300px -15px;
}

.service ul li .qr {
  float: left;
  width: 116px;
  height: 116px;
  border: 1px solid #999;
  padding: 7px 4px 6px 7px;
  margin-top: 30px;
  margin-left: 10px;
}

.service ul li .qr img {
  width: 100%;
}

.service ul li .message {
  margin-top: 40px;
  margin-left: 145px;
}

.service ul li .message p {
  font-size: 14px;
  color: #999;
}

.service ul li .message a {
  display: inline-block;
  padding: 6px 16px;
  font-size: 14px;
  color: #fff;
  background-color: #27ba9b;
}

.service ul li .rexian {
  margin-top: 60px;
  font-size: 22px;
  color: #666;
  text-align: center;
}

.service ul li .time {
  /* 该两句起把span内容居中的功能 */
  display: block;
  text-align: center;

  font-size: 15px;
  color: #999;
}